<?php /* Smarty version Smarty-3.1.18, created on 2015-09-28 14:19:02
         compiled from "E:\www\gfour\ws\Admin\View\Chat\box_list.html" */ ?>
<?php /*%%SmartyHeaderCode:34985600028013deb2-12575910%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a9566cf6cf5dcec09e021df5a23c6631271c7047' => 
    array (
      0 => 'E:\\www\\gfour\\ws\\Admin\\View\\Chat\\box_list.html',
      1 => 1443421128,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '34985600028013deb2-12575910',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_560002802207e8_07745684',
  'variables' => 
  array (
    '_C' => 0,
    'group_id' => 0,
    'box' => 0,
    'box_list' => 0,
    'box_list_page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_560002802207e8_07745684')) {function content_560002802207e8_07745684($_smarty_tpl) {?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/detail/default.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/detail/component.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
		<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/detail/modernizr.custom.js"></script>
		
	</head>
	<body>
		<div class="am-g">
			 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
             <div class="am-btn-group am-btn-group-xs">
            
            <button data-title="新建弹框" data-id="box_<?php echo $_smarty_tpl->tpl_vars['group_id']->value;?>
" data-href="index.php?g=admin&m=chat&a=box_content&id=<?php echo $_smarty_tpl->tpl_vars['box']->value['id'];?>
&group_id=<?php echo $_smarty_tpl->tpl_vars['group_id']->value;?>
" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-plus"></span> 新建弹框</button>
		   
		    </div>
            

           
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
               <th class="table-title"></th>
                <th class="table-title">序号</th>
                <th class="table-type">弹框名称</th>
                <th class="table-date">类型</th>
				<th class="table-date">概率</th>
				<th class="table-date">是否外链</th>
                <th class="table-date">实际触发人数</th>
                <th class="table-date">限制触发人数</th>
                
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	<?php  $_smarty_tpl->tpl_vars['box'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['box']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['box_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['box']->key => $_smarty_tpl->tpl_vars['box']->value) {
$_smarty_tpl->tpl_vars['box']->_loop = true;
?>
            <tr>
            	<td></td>
              <td><?php echo $_smarty_tpl->tpl_vars['box']->value['id'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['box']->value['name'];?>
</td>
			   <td><?php if ($_smarty_tpl->tpl_vars['box']->value['type']==1) {?> 个人信息框 <?php } elseif ($_smarty_tpl->tpl_vars['box']->value['type']==2) {?>奖项框 <?php } elseif ($_smarty_tpl->tpl_vars['box']->value['type']==3) {?>谢谢参与框 <?php }?></td>
			     <td>
			     	<?php if ($_smarty_tpl->tpl_vars['box']->value['type']==2) {?>
			     	<?php echo $_smarty_tpl->tpl_vars['box']->value['pby'];?>

					<?php } else { ?>
					 - 
					 <?php }?>
					</td>
				<td><?php if ($_smarty_tpl->tpl_vars['box']->value['is_extend_links']==1) {?> 是 <?php } else { ?> 否 <?php }?> </td>
				<td>
					<?php if ($_smarty_tpl->tpl_vars['box']->value['type']==2) {?>
			     	<?php echo $_smarty_tpl->tpl_vars['box']->value['joinnums'];?>

					<?php } else { ?>
					 - 
					 <?php }?>
				</td>
				 <td>
				 <?php if ($_smarty_tpl->tpl_vars['box']->value['type']==2) {?>
			     	<?php echo $_smarty_tpl->tpl_vars['box']->value['limitnums'];?>

					<?php } else { ?>
					 - 
					 <?php }?>
				 </td>
             
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-box am-btn-box-xs">
                    <button data-title="编辑弹框<?php echo $_smarty_tpl->tpl_vars['box']->value['name'];?>
" data-id="editchatrule_<?php echo $_smarty_tpl->tpl_vars['box']->value['id'];?>
" data-href="index.php?g=admin&m=chat&a=box_content&id=<?php echo $_smarty_tpl->tpl_vars['box']->value['id'];?>
&group_id=<?php echo $_smarty_tpl->tpl_vars['group_id']->value;?>
" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
                    <button data-param ="{ url:'index.php?g=admin&m=chat&a=del_box&id=<?php echo $_smarty_tpl->tpl_vars['box']->value['id'];?>
',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                  	
				  </div>
                </div>
              </td>
            </tr>
             <?php } ?> 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  	<div class="hy_page">
  <?php echo $_smarty_tpl->tpl_vars['box_list_page']->value;?>

  </div>
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

  
  
		
	</body>
</html>
<?php }} ?>
